let myMap = new Map()
let str = 'qwerty'
let object = {
  name: 'mike',
  age: '19',
}
arr = [1, 2, 3, 5 ,8 ,6 ,0 ,9 ]

//字符串
myMap.set(str, 'record the str')
myMap.set(object, 'record the obj')

// let res = myMap.get(str)
// console.log(res);   //record the str
// let res1 = myMap.get('qwerty')
// console.log(res1);  //record the str

// for (let [key, value] of myMap) {
//   console.log(`${key}---${value}`);
// }

for (let key of myMap.keys()){
  console.log(key);
}
for(let value of myMap.values()){
  console.log(value);
}

console.log(myMap.entries());